//载入express

const express = require("express");
const path = require("path");
const app = express();



//设置端口

app.listen(3000,()=>{
    console.log("3000端口已经开启");
});
//登录
const loginrouter = require("./login.js");

//注册
const registerouter = require("./register.js");

app.use("/static",express.static(path.join(__dirname,"/static")));
app.use(express.urlencoded({extends:false}));
app.use(registerouter);
app.use(loginrouter);





